import { Tools } from 'weaver-mobile';

const { callApi } = Tools;

export const contactList = '/api/email/contact/contactList';
export const contactCountList = '/api/email/contact/contactCountList';
export const contactOperation = '/api/email/contact/contactOperation';
export const contactCondition = '/api/email/contact/contactCondition';
export const getUserGroupsList4Mobile = '/api/email/contact/getUserGroupsList4Mobile';

export default {
  contactList: params => callApi({ url: contactList, method: 'GET', params }),
  contactCountList: params => callApi({ url: contactCountList, method: 'GET', params }),
  contactOperation: params => callApi({ url: contactOperation, method: 'POST', params }),
  contactCondition: params => callApi({ url: contactCondition, method: 'POST', params }),
}
